/**
 * 对应管理员端统计分析模块
 */

package xiangmu.schoolpaper.controller.system;




import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import xiangmu.schoolpaper.pojo.DTO.KeywordsQuery;
import xiangmu.schoolpaper.result.Result;
import xiangmu.schoolpaper.service.impl.system.GetMajorsServiceImpl;
import xiangmu.schoolpaper.service.system.GetMajorsService;
import java.util.List;

@Slf4j
@RestController
@RequestMapping("/system/get")
@Tag(name="查看某一年份下所有专业接口")
public class GetMajorsController {

    @Autowired
    private GetMajorsService getMajorsService;


    @GetMapping("/getAllMajors")
    @Operation(summary = "获取专业名称")
    public Result getAllMajors(Integer year){
        log.info("获取专业名称");
        List<String> list = getMajorsService.getAllMajors(year);
        return Result.success(list);
    }


}
